package top.hepingan.cloudorder.listeners;

import lombok.extern.slf4j.Slf4j;
import org.springframework.amqp.rabbit.annotation.RabbitListener;
import org.springframework.stereotype.Component;

@Component
@Slf4j
public class MQListener {

    @RabbitListener(queues = "simple.queue")
    public void listenerSimpleQueue(String msg) {
        log.info("消费者接收到的消息为：{}", msg);
    }
}
